<?php
	ini_set("memory_limit","64M");
	ini_set("max_execution_time", "0");
	ini_set("output_buffering","4096");
	set_time_limit(0);
	require_once('../../site.php');
	function __autoload($class_name) { require_once "../inc/" . $class_name . ".inc.php"; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Setup for <?php echo $loc; ?></title>
</head>

<body>
<h2>Create XML Files</h2> 
<a href="index.php?action=1">Costbiter Products</a> | <a href="index.php?action=2">Costbiter Menu</a>
<br /><br />
<?php	if($_REQUEST['action'] != "20") {
			echo "<div id=\"ActionWindow\" style=\"height:130px; width: 400px; border:solid 1px #000; overflow:auto;\">";
			switch($_REQUEST['action']) {
				case 1: echo "Running Cost biter...<br />"; include('createxmlcostbiterproducts.php'); break;
				case 2: echo "Running Cost biter...<br />"; include('createxmlcostbitermenu.php'); break;
				default: echo "No Action Taken"; break;
			}
			echo "</div>";
		} 
?>
</body>
</html>